import {Injectable} from '@angular/core';
import {_HttpClient} from '@delon/theme';
import {Observable} from 'rxjs/Observable';
import {Login} from './Iogin.moudle';


@Injectable()
export class LoginService {

    constructor(private http: _HttpClient) {
    }

    login(username: string, password: string): Observable<Login> {

        return this.http.post<Login>('Admin/login', {username: username, password: password});
    }


}
